#ifndef __W25QXX_SPI_SOCKET_H__
#define __W25QXX_SPI_SOCKET_H__

#include "stm32_spi.h"
#include "stm32_gpio.h"


/* 使用DMA */
#define W25QXX_SPI_DMA_TRANSFER      1
/* 使用D-Cache加速 */
#define W25QXX_MEMORY_DCACHE_ENABLE  1
/* 内存地址 */
#define W25QXX_WRITE_BUFFER_ADDR     0x30028000
#define W25QXX_READ_BUFFER_ADDR      0x30029020

#define W25QXX_BSP_SPI_HANDLE  BSP_SPI4


static int32_t W25QXX_SPI_CS_Enable(void);
static int32_t W25QXX_SPI_CS_Disable(void);
static int32_t W25QXX_TransferData(uint8_t *Txdata, uint8_t *Rxdata, uint16_t Length);
static int32_t W25QXX_TransferData_DMA(uint8_t *Txdata, uint8_t *Rxdata, uint16_t Length);


#endif



